package com.xquant.pricing.pricingConfig.service;


import com.github.pagehelper.PageInfo;
import com.xquant.pricing.pricingConfig.entity.PricUserGroup;
import com.xquant.pricing.pricingConfig.entity.User;
import com.xquant.pricing.pricingConfig.mapper.PricingUserGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author ershuai.zhao
 * *
 * @Date: 24/12/2019 11:42
 * *
 * @Description:
 */
@Service("pricingConfigAuthorService")
public class PricingUserGroupService {

    @Autowired
    private PricingUserGroupMapper pricingUserGroupMapper;

    public PageInfo<PricUserGroup> getPricUserGroupList(Map map) {
        List<PricUserGroup> list = pricingUserGroupMapper.getPricUserGroupList(map);
        return new PageInfo<PricUserGroup>(list);
    }

    public List<PricUserGroup> getPricUserGroupById(Map map) {
        List<PricUserGroup> list = pricingUserGroupMapper.getPricUserGroupList(map);
        return list;
    }


    public PageInfo<User> findInUserList(Map map) {
        List<User> list = pricingUserGroupMapper.findInUserList(map);
        return new PageInfo<User>(list);
    }

    public PageInfo<User> findUserList(Map map) {
        List<User> list = pricingUserGroupMapper.findUserList(map);
        return new PageInfo<User>(list);
    }

    public PageInfo<User> findOutUserList(Map map) {
        List<User> list = pricingUserGroupMapper.findOutUserList(map);
        return new PageInfo<User>(list);
    }

    public List<PricUserGroup> queryPricUserGroup(Map map) {

        return pricingUserGroupMapper.queryPricUserGroup(map);
    }

    public int queryPricUserGroupCount(Map map) {
        int ct = pricingUserGroupMapper.queryPricUserGroupCount(map);
        return ct;
    }

    public List<User> queryPricUserGroupBy(Map map) {
        List<User> list = pricingUserGroupMapper.queryPricUserGroupBy(map);
        return list;
    }

    public int addPricUserGroup(Map<String, Object> param) {
        return pricingUserGroupMapper.addPricUserGroup(param);
    }

    public int updatePricUserGroup(Map<String, Object> param) {
        return pricingUserGroupMapper.updatePricUserGroup(param);
    }

    public int deletePricUserGroup(Map<String, Object> param) {
        return pricingUserGroupMapper.deletePricUserGroup(param);
    }

    public int upPricUserGroup(Map<String, Object> param) {
        return pricingUserGroupMapper.upPricUserGroup(param);
    }

    public int upPricUserGroup02(Map<String, Object> param) {
        return pricingUserGroupMapper.upPricUserGroup02(param);
    }

    public int downPricUserGroup(Map<String, Object> param) {
        return pricingUserGroupMapper.downPricUserGroup(param);
    }
}
